home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <TITLE>CopyCom MSChart Demo</TITLE>
- </HEAD>
- <BODY BGCOLOR="#ffffff">
-
- CopyCom/MSChart Demo
- <p>
-
- <%
- 'Load combo.ocx which has the Eckler CopyCom and MSChart control.
- Set combo = Server.CreateObject("ComboObj.Combo")
-
- nRow = 7
- nCol = 5
-
- ReDim d(nRow, nCol)
-
- 'Set title for each series on chart.
- d(1, 2) = "Mean"
- d(1, 3) = "Low"
- d(1, 4) = "Middle"
- d(1, 5) = "Top"
-
- 'Set title for each col on chart.
- yr = Year(Now) - 1
- For i = nRow To 2 Step -1
- d(i, 1) = Right(yr, 2) & "/" & Right((yr + 1), 2)
- yr = yr - 1
- Next
-
- randomize
-
- 'Generate chart data.
- For i = nRow To 2 Step -1
- d(i, 2) = Int(((85 - 15 + 1) * Rnd) + 15) 'point on line
- d(i, 3) = Int(((40 - 20 + 1) * Rnd) + 20) 'cal low percentile
- d(i, 4) = Int(((40 - 20 + 1) * Rnd) + 20) 'cal middle percentile
- d(i, 5) = 100 - (d(i, 4) + d(i, 3)) 'cal high percentile
- Next
-
- 'Send chart data to MSChart.
- combo.ChartData(d)
-
- 'Copy MSChart image to gif file using CopyCom.
- combo.ComboCopy server.mappath("combo.gif")
- %>
-
- <IMG SRC=/es/combo.gif>
- <p>
- <small>
- <%
- szDate = "Created " & Now & ", Copyright (c) 1996-1998 by Eckler Software. All rights reserved."
- %>
- <%=szDate%>
- </small>
-
- <BR>
- <BR>
- <!--#include virtual="/es/srcform.inc"-->
-
- </BODY>
- </HTML>